cfg_if::cfg_if! {
    if #[cfg(target_arch = "aarch64")] {
        mod aarch64;
        use aarch64::*;
    } else {
        mod noop;
        use crate::noop::*;
    }
}

/// 获取当前 cpu 自定义 id
#[inline(always)]
pub fn this_processor_id() -> usize {
    arch_my_processor_id()
}

/// 设置当前 cpu 自定义 id
#[inline(always)]
pub fn set_this_processor_id(id: usize) {
    arch_set_my_processor_id(id);
}

/// do cpu relax
#[inline(always)]
pub fn cpu_relax() {
    arch_cpu_relax();
}
